home *** CD-ROM | disk | FTP | other *** search
- := 0;
- end;
- end;
- end;
- WaitToGo;
- end; { UserLineStylePlay }
-
-
- procedure SayGoodbye;
- { Say goodbye and then exit the program }
- var
- ViewInfo : ViewPortType;
- begin
- MainWindow('');
- GetViewSettings(ViewInfo);
- SetTextStyle(TriplexFont, HorizDir, 4);
- SetTextJustify(CenterText, CenterText);
- with ViewInfo do
- OutTextXY((x2-x1) div 2, (y2-y1) div 2, 'That''s all folks!');
- StatusLine('Press any key to quit...');
- repeat until KeyPressed;
- end; { SayGoodbye }
-
-
- PROCEDURE SelectMode;
- VAR
- choice1,choice2 : CHAR;
- xsize,ysize : WORD;
- BEGIN
- (* Let's select a mode *)
- ClrScr;
- WriteLn('VESADEMO:');
- WriteLn('1. 256 colors');
- WriteLn('2. 32768 colors');
- WriteLn('3. 65536 colors');
- WriteLn('4. 16777216 colors');
- WriteLn('Q uit');
- WriteLn;
- Write('Your choice: ');
- REPEAT
- ReadLn(choice1);
- IF choice1 <> '1' THEN BEGIN
- WriteLn('Sorry !');
- WriteLn('This demo wasn''t written for more as 256 colors !');
- WriteLn('You would only get a limited impression of the Hi-& TrueColor modes...');
- WriteLn('Switching to 256 colors.');
- choice1 := '1';
-